import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:yw_bapp/model/index_data_model.dart';

class StoreInfoProvider with ChangeNotifier, DiagnosticableTreeMixin {
  StoreInfo _storeInfo;
  StoreInfo get storeInfo => _storeInfo ?? null;
  void setStoreInfo(storeInfo) {
    _storeInfo = storeInfo;
    notifyListeners();
  }

  int _balance;
  int get balance => _balance ?? 0;
  void setStoreBalance(balance) {
    _balance = balance;
    notifyListeners();
  }
}
